import request from '@/utils/request'

// 查询体验申请列表
export function listExperience (query) {
  return request({
    url: '/manager/experience/list',
    method: 'get',
    params: query
  })
}

// 查询体验申请列表
export function getHomePageShow (query) {
  return request({
    url: '/manager/experience/getHomePageShow',
    method: 'get',
    params: query
  })
}

// 查询体验申请列表
export function getHomePageCount () {
  return request({
    url: '/manager/experience/getHomePageCount',
    method: 'get'
  })
}

// 查询体验申请详细
export function getExperience (id) {
  return request({
    url: '/manager/experience/' + id,
    method: 'get'
  })
}

// 新增体验申请
export function addExperience (data) {
  return request({
    url: '/manager/experience',
    method: 'post',
    data: data
  })
}

// 修改体验申请
export function updateExperience (data) {
  return request({
    url: '/manager/experience',
    method: 'put',
    data: data
  })
}

// 删除体验申请
export function delExperience (id,type) {
  return request({
    url: '/manager/experience/' + id + '/' + type,
    method: 'delete'
  })
}
